package com.zy.springcloud.movie.service.Impl;

import com.zy.springcloud.movie.bean.Movie;
import com.zy.springcloud.movie.dao.MovieDao;
import com.zy.springcloud.movie.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO
 * @Date: 2024/3/30 14:29
 * @Version: 1.0
 * @name 方法名字：
 */
@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    MovieDao movieDao;

    /**
     * @param id
     * @return
     */
    @Override
    public Movie getNewMovie(Integer id) {
        return movieDao.getNewMovie(id);
    }
}
